package Practice.Practice_02;

import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Demo05 {
    public static void main(String[] args) {
        String[] names = {"张三","李四","张三","王五","李四"};
        List<String> list = Arrays.asList(names);
        System.out.println(list);
        Set<String> set = new HashSet<>(list);
        System.out.println(set);
    }
}
